/**
 * 
 */
package gameEnvironment;
import gameUtils.Coordinate;
import javax.imageio.*;
import java.io.*;
import java.awt.image.BufferedImage;

/**
 * @author CrimsonWireless           
 *
 */
public class HotSpotsImage {
	
	public  BufferedImage hotspotImage;
	
	public int intersect(Coordinate coordinate ){
		return  hotspotImage.getRGB(coordinate.xPos, coordinate.yPos);
	}
	
	
	public HotSpotsImage(String imageURL){
		try{
			hotspotImage = ImageIO.read(new File(imageURL));
		}catch(IOException $e){
			System.err.println("Problem with the reading of file"+ $e.getMessage());
		}
	}
	
	
	
	
}
